/*
	File:		Saw.h
	Author:		Ben Feldmann
	Purpose:	Class for managing the buzzsaw weapon
*/

#pragma once

#include "MeleeWeapon.h"
#include "Emitter.h"

class Player;


class Saw : public MeleeWeapon 
{
private:
	bool returning;
	bool hitEnemy;
	float atkTimer;
	float spcAtkTimer;

	bool persist;
	float persistTimer;
	float persistDuration;
	float damageRate;
	float curDamageTime;

	bool render;

	Emitter* hitParticle;

	// Sounds
	int sawAttack;

public:
	Saw(Player* owner);

	~Saw();

	bool CheckCollision(IEntity* base);

	void Attack();

	void SpecialAttack();

	virtual void Update(float elapsed);

	virtual void Render();

	virtual RECT GetRect();

	/*bool CanSpcAttack()		
	{
		return canSpcAttack;
	}*/
};
